home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
A-COMAL Series
/
(k)aai.d64
/
saveshape.proc
< prev
next >
Wrap
Text File
|
2007-02-28
|
432b
|
20 lines
9000 //
9010 PROC SAVESHAPE(SPR,FILENAME$) CLOSED
9020 Z:=ZONE
9030 ZONE 0
9040 IF SPR>=0 AND SPR<64 THEN
9050 DIM DS$ OF 2
9060 OPEN FILE 81,FILENAME$,WRITE
9070 DS$:=STATUS$
9080 IF DS$="00" THEN
9090 BLOCK:=49152+SPR*64
9100 FOR I#:=0 TO 63 DO
9110 BYTE:=PEEK(BLOCK+I#)
9120 PRINT FILE 81: CHR$(BYTE),
9130 ENDFOR I#
9140 ENDIF
9150 CLOSE FILE 81
9160 ENDIF
9170 ZONE Z
9180 ENDPROC SAVESHAPE